package com.shmilyou.dissertationmanagement.domain;
/* Created with 岂止是一丝涟漪     530060499@qq.com    2019/1/16 */

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;

/** 软件著作 */
@Entity
@Data
public class SoftwareCopyright {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Integer id;

    private String name;

    private String summary;

    private String attachment;

    private String authors;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date publishDate;

    @Column(nullable = false, columnDefinition = "tinyint default 0")
    private int del;
}
